import request from '@/utils/request'


/**
 * 通用文件上传
 * @param data
 */
export function uploadOss(data) {
  return request({
    url: '/common/upload',
    method: 'post',
    data: data
  })
}

//上传图片获取LOGO水印样式
export function uploadImgAddLogoWatermark(data) {
  return request({
    url: '/common/uploadImgAddLogoWatermark',
    method: 'post',
    data: data
  })
}

//通用上传私有文件
export function uploadUsagePrivate(data) {
  return request({
    url: '/common/uploadUsagePrivate',
    method: 'post',
    data: data
  })
}

//获取省市区数据
export function areaTreeList() {
  return request({
    url: 'common/areaTreeList',
    method: 'get'
  })
}
